﻿function ValidateKeypress(e) {
    var keynum, keychar, numcheck;
    if (window.event) {//IE
        keynum = e.keyCode;
    }
    else if (e.which) {// Netscape/Firefox/Opera
        keynum = e.which;
    }
    if (keynum == 8 || keynum == 127 || keynum == null || keynum == 9 || keynum == 0 || keynum == 13) return true;
    keychar = String.fromCharCode(keynum);
    numcheck = /\d/;
    return numcheck.test(keychar);
}

function isNullOrEmpty(value) {
    if(value == null || value == ''){
        return true;
    }
    return false;
}